# -*- coding: utf-8 -*-
# created on 2016/12/22
from mathsolver.functions.base import *
from sympy.abc import x, y, a, b


class AssumeParabola(BaseFunction):
    def solver(self, *args):
        eq1 = [y ** 2, a * x]
        eq2 = [x ** 2, b ** y]
        self.steps.append(["", "设抛物线的方程为%s 或 %s" % (BaseEq(eq1).printing(), BaseEq(eq2).printing())])
        self.output.append(BasePaoWuXians([{"name": "", "value": eq1}, {"name": "", "value": eq2}]))
        return self
